<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>登录 - 健身房管理系统</title>
  <link rel="stylesheet" href="./static/css/login.css">
</head>
<body>

<div class="login-container">
  <h2 class="login-title">登录到您的账户</h2>
  <% if (request.getAttribute("error") != null) { %>
  <p style="color:red;"><%= request.getAttribute("error") %></p>
  <% } %>
  <form action="Login" method="post" class="login-form">
    <input type="text" name="username" placeholder="用户名" required="required">
    <input type="password" name="password" placeholder="密码" required="required">
    <input type="submit" value="登录">
  </form>
</div>

</body>
</html>
